
import 'package:ysy_flutter_mvvm_yuanxuan/api/HttpService.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/base/BaseModel.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/base/PullPageBean.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/bean/base/BaseBean.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/bean/base/BaseListDataBean.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/bean/mine/MineBean.dart';
import 'package:ysy_flutter_mvvm_yuanxuan/bean/video/ShortVideoBean.dart';

class VideoVM extends BaseModel{

  BaseListDataBean<ShortVideoBean>?  videoList;

  //短视频 列表
  void getShortVideoList(PullPageBean pullBean,{bool isDialog=true,RequestDone? requestDone}){
     onNetWorkVerdictAndData(future: shortVideoList(pullBean.pageSize,pullBean.pageNum), result: (str){
        videoList=BaseListBean<ShortVideoBean>.fromJson(str,(map) => ShortVideoBean.fromJson(map)).data;
     },isDialog:isDialog,done: requestDone);
  }

}